.class Lcom/netease/newsreader/activity/NewsReader$5;
.super Ljava/lang/Object;
.source "NewsReader.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/NewsReader;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    .line 3265
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/NewsReader$5;)Lcom/netease/newsreader/activity/NewsReader;
    .locals 1
    .parameter

    .prologue
    .line 3265
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 13
    .parameter "v"

    .prologue
    .line 3270
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$6(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/view/PullRefreshListView;

    move-result-object v1

    const/4 v3, 0x1

    invoke-virtual {v1, v3}, Lcom/netease/newsreader/view/PullRefreshListView;->forbidPull(Z)V

    .line 3271
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$6(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/view/PullRefreshListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/netease/newsreader/view/PullRefreshListView;->reset()V

    .line 3272
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const/4 v3, 0x1

    invoke-static {v1, v3}, Lcom/netease/newsreader/activity/NewsReader;->access$8(Lcom/netease/newsreader/activity/NewsReader;Z)V

    .line 3273
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$26(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v1

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3274
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$36(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$39(Lcom/netease/newsreader/activity/NewsReader;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->removeHeaderView(Landroid/view/View;)Z

    .line 3275
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$36(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$20(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z

    .line 3276
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$36(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v1

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 3278
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v3, "more_columns"

    iget-object v4, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v4, v4, Lcom/netease/newsreader/activity/NewsReader;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-static {v1, v3, v4}, Lcom/netease/newsreader/util/Tools;->getDataFromDB(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase;)Landroid/database/Cursor;

    move-result-object v7

    .line 3279
    .local v7, cursor:Landroid/database/Cursor;
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-virtual {v1, v7}, Lcom/netease/newsreader/activity/NewsReader;->startManagingCursor(Landroid/database/Cursor;)V

    .line 3280
    const/4 v10, 0x0

    .line 3281
    .local v10, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$88(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 3282
    if-eqz v7, :cond_0

    invoke-interface {v7}, Landroid/database/Cursor;->getCount()I

    move-result v1

    if-eqz v1, :cond_0

    .line 3284
    invoke-interface {v7}, Landroid/database/Cursor;->moveToFirst()Z

    :goto_0
    invoke-interface {v7}, Landroid/database/Cursor;->isAfterLast()Z

    move-result v1

    if-eqz v1, :cond_1

    .line 3297
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    new-instance v3, Lcom/netease/newsreader/util/MergeAdapter;

    invoke-direct {v3}, Lcom/netease/newsreader/util/MergeAdapter;-><init>()V

    invoke-static {v1, v3}, Lcom/netease/newsreader/activity/NewsReader;->access$89(Lcom/netease/newsreader/activity/NewsReader;Lcom/netease/newsreader/util/MergeAdapter;)V

    .line 3299
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 3302
    .local v2, moreData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/4 v9, 0x0

    .local v9, i:I
    :goto_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$88(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v9, v1, :cond_2

    .line 3314
    new-instance v0, Lcom/netease/newsreader/util/BasePageViewAdapter;

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const v3, 0x7f03003c

    .line 3315
    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/String;

    const/4 v5, 0x0

    const-string v6, "title"

    aput-object v6, v4, v5

    const/4 v5, 0x1

    new-array v5, v5, [I

    const/4 v6, 0x0

    const v12, 0x7f0c00f6

    aput v12, v5, v6

    const/4 v6, 0x0

    .line 3314
    invoke-direct/range {v0 .. v6}, Lcom/netease/newsreader/util/BasePageViewAdapter;-><init>(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[ILcom/netease/newsreader/util/BaseImageDownloader;)V

    .line 3316
    .local v0, moreAdapter:Lcom/netease/newsreader/util/BasePageViewAdapter;
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$90(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/netease/newsreader/util/MergeAdapter;->addAdapter(Landroid/widget/ListAdapter;)V

    .line 3318
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$88(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-nez v1, :cond_3

    .line 3322
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$91(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v1

    const v3, 0x7f0c0087

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 3327
    :goto_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$90(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/util/MergeAdapter;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$91(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v3

    invoke-virtual {v1, v3}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 3329
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1, p1}, Lcom/netease/newsreader/activity/NewsReader;->access$21(Lcom/netease/newsreader/activity/NewsReader;Landroid/view/View;)V

    .line 3330
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$24(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ImageView;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$22(Lcom/netease/newsreader/activity/NewsReader;)Landroid/view/animation/TranslateAnimation;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 3331
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$22(Lcom/netease/newsreader/activity/NewsReader;)Landroid/view/animation/TranslateAnimation;

    move-result-object v1

    new-instance v3, Lcom/netease/newsreader/activity/NewsReader$5$1;

    invoke-direct {v3, p0, p1}, Lcom/netease/newsreader/activity/NewsReader$5$1;-><init>(Lcom/netease/newsreader/activity/NewsReader$5;Landroid/view/View;)V

    invoke-virtual {v1, v3}, Landroid/view/animation/TranslateAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 3358
    return-void

    .line 3286
    .end local v0           #moreAdapter:Lcom/netease/newsreader/util/BasePageViewAdapter;
    .end local v2           #moreData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .end local v9           #i:I
    :cond_1
    new-instance v10, Ljava/util/HashMap;

    .end local v10           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v10}, Ljava/util/HashMap;-><init>()V

    .line 3287
    .restart local v10       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v1, "tname"

    .line 3288
    const-string v3, "tname"

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 3287
    invoke-virtual {v10, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3289
    const-string v1, "tid"

    .line 3290
    const-string v3, "tid"

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 3289
    invoke-virtual {v10, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3291
    const-string v1, "cid"

    .line 3292
    const-string v3, "cid"

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v7, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 3291
    invoke-virtual {v10, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3293
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$88(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 3284
    invoke-interface {v7}, Landroid/database/Cursor;->moveToNext()Z

    goto/16 :goto_0

    .line 3304
    .restart local v2       #moreData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    .restart local v9       #i:I
    :cond_2
    :try_start_0
    new-instance v11, Ljava/util/HashMap;

    invoke-direct {v11}, Ljava/util/HashMap;-><init>()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 3305
    .end local v10           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .local v11, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :try_start_1
    const-string v3, "title"

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$88(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/HashMap;

    const-string v4, "tname"

    invoke-virtual {v1, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v11, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 3307
    invoke-virtual {v2, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-object v10, v11

    .line 3302
    .end local v11           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v10       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :goto_3
    add-int/lit8 v9, v9, 0x1

    goto/16 :goto_1

    .line 3308
    :catch_0
    move-exception v8

    .line 3310
    .local v8, e:Ljava/lang/Exception;
    :goto_4
    invoke-virtual {v8}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3

    .line 3324
    .end local v8           #e:Ljava/lang/Exception;
    .restart local v0       #moreAdapter:Lcom/netease/newsreader/util/BasePageViewAdapter;
    :cond_3
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$5;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$91(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v1

    const v3, 0x7f0c0087

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    goto/16 :goto_2

    .line 3308
    .end local v0           #moreAdapter:Lcom/netease/newsreader/util/BasePageViewAdapter;
    .end local v10           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v11       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :catch_1
    move-exception v8

    move-object v10, v11

    .end local v11           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .restart local v10       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    goto :goto_4
.end method
